package com.nuoniu.sibanyun.service.check.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.nuoniu.sibanyun.entity.check.VQualityCheckDetail;
import com.nuoniu.sibanyun.mapper.check.VQualityCheckDetailMapper;
import com.nuoniu.sibanyun.service.check.IVQualityCheckDetailService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 质检管理_明细 服务实现类
 * </p>
 *
 * @author 白强
 * @since 2021-07-14
 */
@Service
public class VQualityCheckDetailServiceImpl extends ServiceImpl<VQualityCheckDetailMapper, VQualityCheckDetail> implements IVQualityCheckDetailService {

    @Override
    public List<VQualityCheckDetail> listByMainId(Long mainId) {
        QueryWrapper<VQualityCheckDetail> qualityCheckDetailQueryWrapper = new QueryWrapper<>();
        qualityCheckDetailQueryWrapper.eq("order_id",mainId);
        List<VQualityCheckDetail> list = list(qualityCheckDetailQueryWrapper);
        return list;
    }
}
